fix(tests): repair quantum integration test for allowed job names#460
Conversation
The run_autorun_job whitelist rejects arbitrary names like 'another'; update the list/dict status-shape test to use 'smoke' so it exercises _find_job_status through the public API. Co-authored-by: Bryan
Reviewer's guide (collapsed on small PRs)Reviewer's GuideUpdates the quantum integration test to use an allowed autorun job name ('smoke') instead of a disallowed value, keeping coverage of list/dict job status payload handling and the run_autorun_job contract intact. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
🟡 Coverage —
|
| Metric | Value |
|---|---|
| Total coverage | 65.2% |
→ vs main |
0.0% |
| Minimum threshold | 60% |
Updated on every push · 2026-06-20
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
🔐 CodeQL — Open Alerts on this PR
Copilot Autofix suggestions (if enabled) appear as inline review comments on the affected lines. |
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_ce70567f-efc1-4485-93f2-5bdd6e6597a9) |
Summary
Hourly repo health automation failed on two quantum integration tests. The tests called
run_autorun_job("another"), but the API only accepts whitelisted job names (baseline,benchmark,nightly,smoke).Changes
tests/test_quantum_integration.pyto use the allowedsmokejob name in both list- and dict-shaped status payload cases_find_job_statusnormalization through the publicrun_autorun_jobAPIVerification
pytest tests/test_quantum_integration.py— 2 passedCo-authored-by: Bryan
Summary by Sourcery
Tests:
Note
Low Risk
Test-only rename of job fixtures; no production or security behavior changes.
Overview
Repairs failing quantum integration tests by switching the exercised autorun job from
anotherto the API-allowed namesmoke.The parametrized list/dict status fixtures and assertions are updated accordingly so
run_autorun_jobstill validates_find_job_statusnormalization without tripping the job-name whitelist inQuantumIntegration.run_autorun_job.Reviewed by Cursor Bugbot for commit 7a73b1c. Bugbot is set up for automated code reviews on this repo. Configure here.